package com.cn.lp.export.client.base.annotation;

import java.lang.annotation.*;

/**
 * Description: 转化字段注解
 *
 * 有些属性名不能用
 * empty
 *
 * @author wuqirong
 * @date 2020-09-25
 * <p>
 * All rights Reserved, Designed www.xiao100.com
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface ExportField {

    /**
     * The name of the sheet header.
     *
     * <p>
     * write: It automatically merges when you have more than one head
     * <p>
     * read: When you have multiple heads, take the first one
     *
     * @return The name of the sheet header
     */
    String value();

    /**
     * Index of column
     *
     * Read or write it on the index of column,If it's equal to -1, it's sorted by Java class
     *
     * @return Index of column
     */
    int index() default -1;

}
